package com.demo.edit.config;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.context.annotation.Configuration;


/**
 * @author yuxiaolong
 * @email 1005471232@qq.com
 * @date 2018年09月01日 下午11:50
 */
@Configuration
public class ServerConfig {


    @Value("${server.redis.host}")
    private String redisHost;

    @Value("${server.redis.port}")
    private Integer redisPort;

    @Value("${server.redis.password}")
    private String redisPassword;

    @Value("${server.redis.key}")
    private String key;

    public String getRedisHost() {
        return redisHost;
    }

    public void setRedisHost(String redisHost) {
        this.redisHost = redisHost;
    }

    public Integer getRedisPort() {
        return redisPort;
    }

    public void setRedisPort(Integer redisPort) {
        this.redisPort = redisPort;
    }

    public String getRedisPassword() {
        return redisPassword;
    }

    public void setRedisPassword(String redisPassword) {
        this.redisPassword = redisPassword;
    }

    public String getKey() {
        return key;
    }

    public void setKey(String key) {
        this.key = key;
    }
}
